import elDragDialog from '@/directive/el-drag-dialog'
import loadmore from '@/directive/loadmore'
import permission from '@/directive/permission'
import elHeightAdaptiveTable from '@/directive/el-table'

const directives = {
  elDragDialog,
  loadmore,
  permission,
  elHeightAdaptiveTable
}

export default (Vue) => {
  Object.keys(directives).forEach((key) => {
    Vue.directive(key, directives[key])
  })
}
